Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Leaky Relu activation #4604

Merged
merged 11 commits into from
Oct 5, 2017
Merged

Conversation

kavyasrinet
Copy link

Implement:
f(x) = x if x >0 else (alpha * x)

LeakyReluOpMaker(framework::OpProto *proto,
framework::OpAttrChecker *op_checker)
: OpProtoAndCheckerMaker(proto, op_checker) {
AddInput("X", "Input of LeakyRelu operator");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be better if the comment can follow our name convention.
name_convention

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, I didn't follow it because all the other operators in this file also did not follow the convention.

Add -D PADDLE_WITH_CUDA in cmake/configure.cmake
dzhwinter
dzhwinter previously approved these changes Oct 5, 2017
Copy link
Contributor

@dzhwinter dzhwinter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Sorry, my bad, the activation always use the same parameter. :)

Copy link
Contributor

@dzhwinter dzhwinter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@kavyasrinet kavyasrinet merged commit 3e2be06 into PaddlePaddle:develop Oct 5, 2017
@kavyasrinet kavyasrinet deleted the activations branch October 9, 2017 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants